package com.hxk.ioText.byteIo.handleIo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.util.Date;

public class PrintIo {
	public static void main(String[] args) throws FileNotFoundException {
		PrintStream ps = System.out;
		ps.println(1);
		ps.println(1.0);
		ps.println(true);
		ps.println("abc");
		ps.println('c');
		ps.println(new Date());
		
		PrintStream ps1 = new PrintStream(new FileOutputStream("d:/p.txt"));
		ps1.println(1);
		ps1.println(1.0);
		ps1.println(true);
		ps1.println("abc");
		ps1.println('c');
		ps1.println(new Date());
		
	}
}
